package com.cskaoyan.service;


import com.cskaoyan.dao.OrderMapper;
import com.cskaoyan.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author stone
 * @date 2022/05/24 14:42
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    UserMapper userMapper;

    @Autowired
    @Qualifier("orderMapperImpl1")
    OrderMapper orderMapper;

    @Resource(name = "orderMapperImpl2")
    OrderMapper orderMapper2;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }
}
